import { request } from "@/utils/request.js"

// 服务列表
export function merchantServiceServicePage(data = {}) {
	return request({
		url: '/merchant/merchantService/servicePage',
		data
	})
}

// 添加服务
export function merchantServiceAdd(data = {}) {
	return request({
		url: '/merchant/merchantService/add',
		data,
		method: 'POST',
		showMsg: true
	})
}


// 修改服务
export function merchantServiceUpdate(data = {}) {
	return request({
		url: '/merchant/merchantService/update',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 删除服务
export function merchantServiceDelete(data = {}) {
	return request({
		url: '/merchant/merchantService/delete',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 上下架服务
export function merchantServiceUpOrDown(data = {}) {
	return request({
		url: '/merchant/merchantService/upOrDown',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 确认或者拒绝预约
export function merchantServiceConfirmReverse(data = {}) {
	return request({
		url: '/merchant/merchantService/confirmReverse',
		data,
		method: 'POST',
		showMsg: true
	})
}

// 完成或者爽约预约服务
export function merchantServiceFinishReverse(data = {}) {
	return request({
		url: '/merchant/merchantService/finishReverse',
		data,
		showMsg: true
	})
}

// 预约列表
export function merchantServiceReverseRecordPage(data = {}) {
	return request({
		url: '/merchant/merchantService/reverseRecordPage',
		data
	})
}

// 预约详情
export function merchantServiceInfo(data = {}) {
	return request({
		url: '/merchant/merchantService/info',
		data
	})
}